package com.aaa.service.impl;

import com.aaa.dao.TypeMapper;
import com.aaa.entity.Type;
import com.aaa.service.TypeServiceDao;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class TypeServiceImpl implements TypeServiceDao {
    @Resource
    TypeMapper typeMapper;

    @Override
    public List<Type> find() {
        return typeMapper.find();
    }

    @Override
    public List<Type> findpage(Integer pageSize, Integer pageNum) {
        return typeMapper.findpage(pageSize, pageNum);
    }

    @Override
    public Integer findcount() {
        return typeMapper.findcount();
    }

    @Override
    public Integer add(Type type) {
        return typeMapper.add(type);
    }

    @Override
    public int delete(Integer tid) {
        return typeMapper.delete(tid);
    }

    @Override
    public int update(Type type) {
        return typeMapper.update(type);
    }
}
